package top.api.controller;

import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.api.common.ResUlt;
import top.api.domain.dto.PageDto;
import top.api.service.UserInfoService;

@RestController
@RequestMapping("/userinfo")
@AllArgsConstructor
public class userInfoController {
    private final UserInfoService userInfoService;


    @GetMapping("/list")
    @ApiOperation("分页获取用户信息")
    public ResUlt<?> listPage(PageDto pageDto,Integer id,String nickName){

        return  userInfoService.listPage(pageDto,id,nickName);
    }

}
